const struct element_handler handler_table[] = {
/*  URI format        GET                POST              PUT               DELETE          */
  {"node",            list_all_nodes,    NULL,             NULL,             NULL             },
  {"node/#",          list_a_node,       create_a_node,    update_a_node,    remove_a_node    },
  {"node/#/setting",  list_a_setting,    NULL,             update_a_setting, NULL             },
  {"node/#/output",   list_an_output,    NULL,             NULL,             NULL             },
  {"node/#/therm",    list_a_therm,      NULL,             update_a_therm,   NULL             },
  {"profile",         list_all_profiles, NULL,             NULL,             NULL             },
  {"profile/#",       list_a_profile,    create_a_profile, update_a_profile, remove_a_profile },
  {"log",             list_all_logs,     NULL,             NULL,             NULL             },
  {"log/#",           list_a_log,        NULL,             NULL,             remove_a_log     },
  {"therm",           list_all_therms,   scan_therms,      NULL,             NULL             },
};

int sizeof_handler_table(void)
{
  return ARRAY_SIZE(handler_table);
}

